<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title></title>
  <link rel="shortcut icon" type="image/x-icon" href="http://hoppinzq.com/static/images/favicon.ico">
  <link rel="stylesheet" href="http://hoppinzq.com/static/css/vendor/ionicons.css"/>
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

  <link rel="stylesheet" href="http://hoppinzq.com/static/css/vendor/line-awesome.min.css"/>
  <link rel="stylesheet" href="http://hoppinzq.com/static/css/plugins/animate.min.css"/>
  <link rel="stylesheet" href="http://hoppinzq.com/static/css/plugins/swiper-bundle.min.css"/>
  <link rel="stylesheet" href="http://hoppinzq.com/static/css/plugins/jquery-ui.min.css"/>
  <link rel="stylesheet" href="http://hoppinzq.com/static/css/plugins/fileinput.css"/>
  <link rel="stylesheet" href="http://hoppinzq.com/static/css/plugins/highlight.css"/>
  <link rel="stylesheet" href="http://hoppinzq.com/static/css/plugins/editormd.min.css"/>

  <link rel="stylesheet" href="http://hoppinzq.com/static/css/plugins/medium-editor.css">
  <link rel="stylesheet" href="http://hoppinzq.com/static/css/themes/default.css">
  <link rel="stylesheet" href="http://hoppinzq.com/static/css/plugins/medium-editor-insert-plugin.css">
  <link rel="stylesheet" href="http://hoppinzq.com/static/css/plugins/blogtag.css">
  <link rel="stylesheet" href="http://hoppinzq.com/static/css/plugins/sitelogo.css">
  <link rel="stylesheet" href="http://hoppinzq.com/static/css/plugins/cropper.min.css">
  <link rel="stylesheet" href="http://hoppinzq.com/static/css/plugins/jBox.all.css">
  <link id="theme-style" rel="stylesheet" type="text/css" href="http://hoppinzq.com/static/css/themes/white.css">

  <link rel="stylesheet" href="http://hoppinzq.com/static/css/style.css"/>
  <link rel="stylesheet" href="http://hoppinzq.com/static/css/style1.css"/>
</head>
<body>
<form enctype="multipart/form-data" method="post" action="http://127.0.0.1:8809/blogFile/import">
  <input type="file" name="file"/>
  <input type="text" name="textName" >
  <button type="submit">提交</button>
</form>


<!--<form enctype="multipart/form-data" method="post" action="http://127.0.0.1:8809/hoppinzq?method=blogVideo&params=%7B'userId':123%7D">-->
<!--  <input type="file" name="fileName"/>-->
<!--  <input type="text" name="textName" >-->
<!--  <button type="submit">提交</button>-->
<!--</form>-->
</body>
<script src="http://hoppinzq.com/static/js/vendor/jquery-3.3.1.min.js"></script>
<script>
  function callfun(data) {
    console.log(data)
  }
</script>
<script src="http://127.0.0.1:8809/blogFile/jsonP?call=callfun"></script>
<script>
  $(function(){
    let htmlCode="";
    console.log(window.decodeURIComponent(htmlCode))
    $("body").append(window.decodeURIComponent(htmlCode))
    $("form").submit(function(){

      var $form =$(this);
      var formData = new FormData($form[0]);
      var action = $form.attr('action');
      var method = $form.attr('method');
      $.ajax({
        type:method,
        url:action,
        async:true,
        data:formData,
        cache:false,
        processData: false,
        contentType: false,
        success :function (data) {
          console.log(data);
        },
        error:function(data){
          console.error(data)
        }
      })
    })
  })
</script>
</html>
